﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jacaranda.Model;

namespace Jacaranda.Rules
{
    public class Required : ValidationRule
    {
        public override bool Validate(Entity entity, string propertyName, object propertyValue)
        {
            return propertyValue != null && !string.Empty.Equals(propertyValue);
        }
    }
}
